package com.tyl.thread01;

// 实现Runnable接口
public class ThreadTest3 implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("Thread被我学习");
        }
    }

    public static void main(String[] args) {
        ThreadTest1 threadTest1 =new ThreadTest1();
        //开启线程
        new Thread(threadTest1).start();
        for (int i = 0; i < 200; i++) {
            System.out.println("我在学习Thread");
        }
    }
}
